<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Listar Time</title>
</head>
<body>
<h1>Lista dos times</h1>
<p>Aqui os times podem ser listados os times, editados, removidos ou atualizados.</p>
<table border="1px" cellpadding="0" cellspacing="0" >
<thead>
<tr>
<th width="10%">id</th><th width="15%">name</th><th width="10%">rating</th><th width="10%">actions</th>
</tr>
</thead>
<tbody>
<c:forEach var="time" items="${times}">
<tr>
	<td>${time.id}</td>
	<td>${time.name}</td>
	<td>${time.rating}</td>
	<td>
	<a href="${pageContext.request.contextPath}/time/edit/${time.id}.html">Editar</a><br/>
	<a href="${pageContext.request.contextPath}/time/delete/${time.id}.html">Deletar</a><br/>
	</td>
</tr>
</c:forEach>
</tbody>
</table>

<p><a href="${pageContext.request.contextPath}/index.html">pagina de inicio</a></p>

</body>
</html>